package top.kiterunner.learning.designpatterns_test.decorator_pattern;

/**
 * AdorynZhao in Tencent-UESTC.
 * Source Code Created on 2017/7/31.
 */
public class Father {

    public static void main(String[] args) {
        SchoolReport sr;
        sr = new ForthGradeSchoolReport();
        sr = new SugarForthGradeSchoolReport();
        sr.report();

        System.out.println("\n\n");

        sr = new ForthGradeSchoolReport();
        sr = new HighScoreDecorator(sr);
        sr = new SortDecorator(sr);

        sr.report();

        sr.sign("Jack");
    }
}
